package org.dromara.system.domain.bo;

import org.dromara.system.domain.RiskMeasure;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 管控措施业务对象 risk_measure
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RiskMeasure.class, reverseConvertGenerate = false)
public class RiskMeasureBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 风险事件ID
     */
    private Long riskEventId;

    /**
     * 管控措施分类1：1工程技术，2维护保养，3操作行为，4应急措施
     */
    private String classify1;

    /**
     * 管控措施分类2
     */
    private String classify2;

    /**
     * 管控措施分类3
     */
    @NotBlank(message = "管控措施分类3不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classify3;

    /**
     * 管控方式：1自动化监控，2隐患排查，3其他
     */
    private String dataSrc;

    /**
     * 管控措施描述
     */
    private String riskMeasureDesc;

    /**
     * 隐患排查内容
     */
    private String troubleShootContent;


}
